package com.me.util;

import com.me.data.DataService;
import com.me.fragment.ViewPagerFragment;

public class AppUtil {

	public static class App {

		public static DataService dataService = null;
		//public static MeParser meParser = null;

		public static String currCalendarId = null;
		public static String currCalendarName = null;

		// current setting
		public static String currButtonSize = null;
		public static String defaultEventType = null; // pending or calendar

	}

	public static class Event {

		public static int eventType = 0;
		public static boolean dataChanged;
		public static boolean settingChanged;

		public static void clear() {
			
			if ( dataChanged || settingChanged )
				ViewPagerFragment.getViewPager().getAdapter().notifyDataSetChanged();

			dataChanged = settingChanged = false;
		}

		public static boolean updateRequired() {
			return (dataChanged || settingChanged);
		}
	}

}
